<?php
class Comment { 
    private $itemID;
    private $name;
    private $email;
    private $text;
    private $timestamp;
    private $rating;
    private $ipAddress;
    
    public function __construct($itemID, $name, $email, $timestamp, $rating, $text, $ipAddress){
        $this->itemID = $itemID;
        $this->name = $name;
        $this->email = $email;
        $this->timestamp = $timestamp;
        $this->rating = $rating;
        $this->text = $text;
    	$this->ipAddress = $ipAddress;
    }
    
    public function getEmail() {
        return ($this->email != null) ? $this->email : "";
    }
    
    public function getipAddress() {
    	return ($this->ipAddress != null) ? $this->ipAddress : "";
    }
    
    public function getItemID() {
        return $this->itemID;
    }
    
    public function getName() {
        return ($this->name != null) ? $this->name : "";
    }
    
    public function getRating() {
    	return ($this->rating != null) ? $this->rating : "";
    }
    
    public function getText() {
        return ($this->text != null) ? $this->text : "";
    }
    
    public function getTimestamp() {
    	return ($this->timestamp != null) ? $this->timestamp : "";
    }
}
?>